package org.canto.poss;

import cn.hutool.json.JSONUtil;
import org.canto.poss.domain.entity.Menu;
import org.canto.poss.service.MenuService;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

import javax.annotation.Resource;
import java.util.List;

/**
 * Description: spring相关测试
 *
 * @author jsryin
 * @date 2024/12/11 23:58
 */
@SpringBootTest(classes = CasePossApplication.class)
public class SpringTestDemo {

    @Resource
    private MenuService menuService;

    @Test
    @DisplayName("查询测试")
    void findMenu() {
        System.out.println("=======start=======");
        List<Menu> menus = menuService.selectList(new Menu());
        System.out.println(JSONUtil.toJsonStr(menus));
        System.out.println("=======end=======");
    }

}
